package com.java.category.service;

import com.java.param.PageParam;
import com.java.param.ProductHotParam;
import com.java.pojo.Category;
import com.java.utils.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CategoryService {
    R byName(String categoryName);

    /**
     * 根据类别集合进行查询类型对象,返回对应的类别id
     * @param productHotParam
     * @return
     */
    R hotsCategory(ProductHotParam productHotParam);

    /**
     * 返回全部类型信息
     * @return
     */
    R list();

    R list(PageParam pageParam);

    R save(Category category);

    R remove(Category category);

    R update(Category category);

    List<Category> productList();

}
